package o;

import android.content.Context;
import android.graphics.drawable.Drawable;
import android.view.Menu;
import android.view.MenuItem;
import android.view.SubMenu;
import android.view.View;
import androidx.annotation.RestrictTo;
import androidx.annotation.RestrictTo.d;
import o.bd.e;

@RestrictTo({d.LIBRARY_GROUP})
public class bv extends bd implements SubMenu {
    private bd ˋ;
    private bj ˎ;

    public bv(Context context, bd bdVar, bj bjVar) {
        super(context);
        this.ˋ = bdVar;
        this.ˎ = bjVar;
    }

    public void setQwertyMode(boolean z) {
        this.ˋ.setQwertyMode(z);
    }

    public boolean ˋ() {
        return this.ˋ.ˋ();
    }

    public boolean ˏ() {
        return this.ˋ.ˏ();
    }

    public Menu ᐝॱ() {
        return this.ˋ;
    }

    public MenuItem getItem() {
        return this.ˎ;
    }

    public void ॱ(e eVar) {
        this.ˋ.ॱ(eVar);
    }

    public bd ॱˋ() {
        return this.ˋ.ॱˋ();
    }

    boolean ॱ(bd bdVar, MenuItem menuItem) {
        return super.ॱ(bdVar, menuItem) || this.ˋ.ॱ(bdVar, menuItem);
    }

    public SubMenu setIcon(Drawable drawable) {
        this.ˎ.setIcon(drawable);
        return this;
    }

    public SubMenu setIcon(int i) {
        this.ˎ.setIcon(i);
        return this;
    }

    public SubMenu setHeaderIcon(Drawable drawable) {
        return (SubMenu) super.ॱ(drawable);
    }

    public SubMenu setHeaderIcon(int i) {
        return (SubMenu) super.ˏ(i);
    }

    public SubMenu setHeaderTitle(CharSequence charSequence) {
        return (SubMenu) super.ˋ(charSequence);
    }

    public SubMenu setHeaderTitle(int i) {
        return (SubMenu) super.ˎ(i);
    }

    public SubMenu setHeaderView(View view) {
        return (SubMenu) super.ॱ(view);
    }

    public boolean ˋ(bj bjVar) {
        return this.ˋ.ˋ(bjVar);
    }

    public boolean ˎ(bj bjVar) {
        return this.ˋ.ˎ(bjVar);
    }

    public String ˊ() {
        int itemId = this.ˎ != null ? this.ˎ.getItemId() : 0;
        if (itemId == 0) {
            return null;
        }
        return super.ˊ() + ":" + itemId;
    }

    public void setGroupDividerEnabled(boolean z) {
        this.ˋ.setGroupDividerEnabled(z);
    }

    public boolean ॱ() {
        return this.ˋ.ॱ();
    }
}
